Skip to content

Fix shard phy counter#3717

Merged
roman-khimov merged 2 commits intomasterfrom
bugfix/ec-expiration
Jan 21, 2026
Merged

Fix shard phy counter#3717
roman-khimov merged 2 commits intomasterfrom
bugfix/ec-expiration

Conversation

@cthulhu-rider
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.66%. Comparing base (6285ebd) to head (59eb030).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
pkg/local_object_storage/metabase/delete.go 86.66% 1 Missing and 1 partial ⚠️
pkg/local_object_storage/metabase/version.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3717      +/-   ##
==========================================
+ Coverage   25.63%   25.66%   +0.03%     
==========================================
  Files         657      657              
  Lines       42117    42135      +18     
==========================================
+ Hits        10795    10814      +19     
+ Misses      30342    30338       -4     
- Partials      980      983       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review December 4, 2025 17:14
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An update to counters is required as a part of migration as well. We've done it once, can do it again. We certainly have some expired big objects in mainnet, it's just that it's hard to notice anything in counters given the overall number/size of objects.

@cthulhu-rider
Copy link
Contributor Author

needs deeper examination

@cthulhu-rider cthulhu-rider marked this pull request as draft December 5, 2025 08:01
@cthulhu-rider cthulhu-rider added bug Something isn't working neofs-storage Storage node application issues labels Dec 5, 2025
@carpawell carpawell mentioned this pull request Dec 11, 2025
Regression from 9a49cd0. Previously, shard miscounted removed parent
objects as physical ones.

This was reproduced in DevEnv: when split objects expired, metrics
showed:
```
neofs_node_object_counter{shard="6pmbXUjzhKuvYnzrkUbeuP",type="phy"} -9
neofs_node_object_counter{shard="LpCtgJvdezqupmWtbM71rJ",type="phy"} -10
```

Refs #3740.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider changed the title Fix metrics on parent objects' expiration Fix shard phy counter Jan 20, 2026
@cthulhu-rider
Copy link
Contributor Author

updated changes to fix phy counter only. Left all the rest to #3740

@cthulhu-rider cthulhu-rider marked this pull request as ready for review January 20, 2026 16:47
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update counters then, same as for 7->8 metabase version migration.

@cthulhu-rider
Copy link
Contributor Author

We need to update counters then, same as for 7->8 metabase version migration.

done, check pls

Extend migration routine to forcefully re-calculate phy objects counter
since it was managed incorrectly in previous versions.

Refs #3740.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@roman-khimov roman-khimov merged commit 0ef504c into master Jan 21, 2026
22 checks passed
@roman-khimov roman-khimov deleted the bugfix/ec-expiration branch January 21, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working neofs-storage Storage node application issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants